libxl/xl: Use libxl_vcpuinfo_destroy
authorIan Campbell <ian.campbell@citrix.com>
Thu, 19 Aug 2010 14:32:56 +0000 (15:32 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 19 Aug 2010 14:32:56 +0000 (15:32 +0100)
commitf305cf395353cb09d57416d25a7a2cb6c7899f4e
tree5b8a32c4f18b478aee789ab93270c1065d95cf2e
parentf37b9745f255970e286d69b9f3c3fb1f435ca99c
libxl/xl: Use libxl_vcpuinfo_destroy

Replaces libxl_free_vcpu_list.

The ->cpumap field is now always a unique allocation rather than each
being an offset into the cpumap allocated in the first
libxl_device_pci in the list.

Refactor vcpulist so that the two cases can share more code.

[PATCH 15 of 16 of
 libxl: autogenerate type definitions and destructor functions]

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl.c
tools/libxl/libxl.h
tools/libxl/xl_cmdimpl.c